package org.as.sdg.beans;

import javax.swing.tree.DefaultMutableTreeNode;

import com.icesoft.faces.component.tree.IceUserObject;

public class NavigationTreeNode extends IceUserObject {
	// node id associated with this tree node. Node Id's are bound to
	// content defined in application meta data.
	private String nodeId;

	// selected state, only one node is intended to be selected at one time.
	private boolean selected;

	public NavigationTreeNode(DefaultMutableTreeNode defaultMutableTreeNode) {
		super(defaultMutableTreeNode);
		this.setExpanded(false);
	}

	public boolean isSelected() {
		return selected;
	}

	public void setSelected(boolean selected) {
		this.selected = selected;
	}

	public String getNodeId() {
		return nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}
}
